﻿using System.IO;

namespace NjamNjamAdminApp.Utils
{
    public static class Image
    {
        public const string ImageDir = "Images";

         public static void SaveImage(string imageName, byte[] data)
         {
             var image = System.Drawing.Image.FromStream(new MemoryStream(data));
             image.Save(Path.Combine(ImageDir, imageName));
         }
    }
}